#include "DataStructure/Result/ElementalStrain/TETRAStrainData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const TETRAStrainData& val1, const TETRAStrainData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE (m_CID)
    FIELD_COMPARE_ARR (m_CTYPE, 4)
    FIELD_COMPARE (m_NODEF)
    FIELD_COMPARE_ARR (m_GRID, 5)
    FIELD_COMPARE_ARR (m_X, 5)
    FIELD_COMPARE_ARR (m_Y, 5)
    FIELD_COMPARE_ARR (m_Z, 5)
    FIELD_COMPARE_ARR (m_TXY, 5)
    FIELD_COMPARE_ARR (m_TYZ, 5)
    FIELD_COMPARE_ARR (m_TZX, 5)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const TETRAStrainData& a, const TETRAStrainData& b)
{
    return a.m_eId < b.m_eId;
}
